home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20020314-20021006 / 000130_fdc@columbia.edu_Fri Jun 7 09:56:41 EDT 2002.msg < prev    next >
Text File  |  2020-01-01  |  2KB  |  65 lines

  1. Article: 13429 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!news.columbia.edu!news-not-for-mail
  3. From: fdc@columbia.edu (Frank da Cruz)
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Re: monitor seriell port
  6. Date: 7 Jun 2002 09:56:26 -0400
  7. Organization: Columbia University
  8. Lines: 48
  9. Message-ID: <adqe2a$rvf$1@watsol.cc.columbia.edu>
  10. References: <Pine.GSO.4.33.0206071031550.4979-100000@sqc097>
  11. NNTP-Posting-Host: watsol.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 1023458188 13314 128.59.39.139 (7 Jun 2002 13:56:28 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 7 Jun 2002 13:56:28 GMT
  15. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13429
  16.  
  17. In article <Pine.GSO.4.33.0206071031550.4979-100000@sqc097>,
  18. Werner Lamping  <nrjlamp@nrj.ericsson.se> wrote:
  19. : I'm planning to monitor a seriell port which pipes out a lot lot
  20. : of logging data and looking for suitable tool .
  21. : I only have very little experience with kermit . But I'm wondering if it
  22. : could do the job . It must be a kind of script which
  23. : - open a a seriell port
  24. :
  25. Yes.
  26.  
  27. : - open a file
  28. :
  29. Yes.
  30.  
  31. : - read data writes it into the file
  32. :
  33. Yes.
  34.  
  35. : - after a certain time closes the file
  36. :
  37. Yes.
  38.  
  39. : - (preferably can zip the data before stored)
  40. :
  41. It can run an inferior process to do this.
  42.  
  43. : Can someone tell me if kermit can do it ????
  44. Yes.  Here's an outline:
  45.  
  46.   log session filename  ; Open log file
  47.   if fail exit 1 Can't open log
  48.   set carrier-watch off ; only if necessary
  49.   set line /dev/ttyS0   ; or other device name
  50.   if fail exit 1 Can't open device
  51.   set speed 38400       ; or other speed
  52.   set flow rts/cts      ; or other flow-control method
  53.   input 11:59:59 STRING_THAT_WILL_NEVER_COME
  54.   close session
  55.   !zip -l filename.zip filename
  56.   exit
  57.  
  58. See the Kermit script library for more examples:
  59.  
  60.   http://www.columbia.edu/kermit/ckscripts.html
  61.  
  62. - Frank
  63.